#include <stdio.h>

int Score(int work,int test,int exam){
    if(0<=work<=100)
        work=work*0.2;
    else(printf("数值有误"));
    if(0<test<=100)
        test=test*0.3;
    else(printf("数值有误"));
    if(0<=exam<=100)
        exam=exam*0.5;
    else(printf("数值有误"));
    int score=work+test+exam;
    return score;


}
int main(){
    int a,b,c,d;
    
    scanf("%d %d %d",&a,&b,&c);
    d=Score(a,b,c);
    printf("%d",d);


}